FROM java:21
LABEL authors="xintoucloud"

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8

ADD demo1-0.0.1-SNAPSHOT.jar target.jar

EXPOSE 8080

ENTRYPOINT ["java","-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8081","-Djava.security.egd=file:/dev/./urandom", "-jar", "/target.jar","-Duser.timezone=GMT+08"]
